/*
 * @Description:
 * @Author: william
 * @Date: 2025-11-07 09:18:30
 * @LastEditors: william
 * @LastEditTime: 2025-11-07 10:23:43
 */
export const useAppAsrLicenseStore = defineStore(
  'app-asr-license',
  () => {
    const appId = ref(uni.getSystemInfoSync().deviceId)
    const asrLicense = ref('')

    return {
      appId,
      asrLicense
    }
  },
  {
    // persist: true // 配置持久化
    persist: [
      {
        key: 'app-asr-license-store', // 自定义存储键名
        // storage: localStorage, // 默认是 localStorage,可以改为 sessionStorage,可全局配置
        pick: ['appId', 'asrLicense']
      }
    ]
  }
)

export function useOutsideAppAsrLicenseStore() {
  return useAppAsrLicenseStore(g_store)
}
